{include file="header.html"}
<div class="row">
<div class="span12">
{include file='coupon/nav.html'}
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>名称</td>
   <td>类型</td>
   <td>价格</td>
   <td>最低消费</td>
   <td>数量</td>
   <td>截止日期</td>
   <td>创建时间</td>
   <td>状态</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
   <td>{$c.title}</td>
   <td>{$type_list[$c.type_id]}</td>
   <td>{$c.money}</td>
   <td>{$c.lower_money}</td>
   <td>{$c.amount}</td>
   <td>{$c.end_time|date:Y-m-d}</td>
   <td>{$c.dateline|date:Y-m-d}</td>
   <td>
   		 {if $c.status eq 1}
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="{$appadmin}?m=coupon&a=status&id={$c.id}&status=1" url="{$appadmin}?m=coupon&a=status&id={$c.id}&status=0" />
           {else}
           <img src="/static/images/no.gif"  class="ajax_yes" url="{$appadmin}?m=coupon&a=status&id={$c.id}&status=1" rurl="{$appadmin}?m=coupon&a=status&id={$c.id}&status=0" />  
          {/if}
   </td>
<td><a href="{$appadmin}?m=coupon&a=add&id={$c.id}">编辑</a> <a href="{$appadmin}?m=coupon&a=show&id={$c.id}">查看</a> <a href="javascript:;" class="delete" url="{$appadmin}?m=coupon&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}